package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.ExamWarehouseStudy;
import com.zhijian.medical.entity.vo.request.ExamWarehouseStudySearchVo;
import com.zhijian.medical.entity.vo.response.ExamWarehouseStudyVo;

import java.util.List;

public interface ExamWarehouseStudyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ExamWarehouseStudy record);

    int insertSelective(ExamWarehouseStudy record);

    ExamWarehouseStudy selectByPrimaryKey(Long id);

    /**
     * 根据学习id查找数据
     *
     * @param studyId
     * @return
     */
    ExamWarehouseStudy selectByStudyId(Long studyId);

    int updateByPrimaryKeySelective(ExamWarehouseStudy record);

    int updateByPrimaryKey(ExamWarehouseStudy record);

    int count(ExamWarehouseStudySearchVo examWarehouseStudySearchVo);

    List<ExamWarehouseStudyVo> selectList(ExamWarehouseStudySearchVo examWarehouseStudySearchVo);

    ExamWarehouseStudyVo selectVoById(Long id);

    /**
     * 根据学习id查找数据
     *
     * @param studyId
     * @return
     */
    ExamWarehouseStudyVo selectVoByStudyId(Long studyId);
}